package net.maku.generator.service;

import jakarta.servlet.http.HttpServletResponse;
import net.maku.generator.config.template.TemplateInfo;
import net.maku.generator.domain.vo.PreviewVO;
import net.maku.generator.domain.vo.TreeVO;

import java.io.IOException;
import java.util.List;

/**
 * 代码生成
 *
 * @author 阿沐 babamu@126.com
 * <a href="https://maku.net">MAKU</a>
 */
public interface GeneratorService {

    void downloadZip(List<Long> tableIdList, HttpServletResponse response) throws IOException;

    List<PreviewVO> preview(Long tableId);

    TemplateInfo generatorCode(Long tableId, Long templateId);

    List<TreeVO> treeData(Long tableId);

    void downloadLocal(Long tableId);

}
